package com.dazzle.system.service.impl;

import java.util.List;

import javax.annotation.Resource;

import com.dazzle.core.service.impl.GenericServiceImpl;
import com.dazzle.system.dao.SysTypeDao;
import com.dazzle.system.entity.SysType;
import com.dazzle.system.service.SysTypeService;

public class SysTypeServiceImpl extends GenericServiceImpl<SysType,Long> implements SysTypeService{

	@Resource
	private SysTypeDao dao ;

	public SysTypeServiceImpl(SysTypeDao sysTypeDao) {
		super(sysTypeDao);
		this.dao = sysTypeDao;
	}

	@Override
	public List<SysType> getAllRootOfSys() {
		return dao.getAllRootOfSys();
	}

	@Override
	public List<SysType> getAllByParentId(Long rootId) {
		return dao.getAllByParentId(rootId);
	}
	
}